import { http } from "@/utils/http";

export type commonResult<T> = {
  code: number;
  msg: string;
  result: T;
};

export type infoType = {
    
    projectId?:Number,
    logo?:String,
    indexMode?:String,
    mapPoints?:any,
    lng?:any,
    lat?:any,
    projectPlan?:String,
    VR?:String,
    threeD?:String,
    topId?:String,
    screenMenus?:any,
    menuMode?:String,
    menuName?:String,
    menuType?:String,
    url?:String,
  
}


const Url = '/business/project/v2/setting';

export const getInfo = (params?: object) => {
  return http.request<commonResult<infoType>>("get", Url, {
    params
  });
};

export const editInfo = (data?: object) => {
  return http.request<commonResult<any>>("put", Url, {
    data
  });
};

//2.1.7 组态列表选择
export const select = (params?: object) => {
  return http.request<commonResult<Array<any>>>("get", '/business/topo/v2/topo/select', {
    params
  });
};
